/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nlp.visualization.pojo.weibo;


import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author LXM
 */
@Entity
@Table(name = "t_weibo_userinfo")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "TWeiboUserinfo.findAll", query = "SELECT t FROM TWeiboUserinfo t"),
    @NamedQuery(name = "TWeiboUserinfo.findByUserId", query = "SELECT t FROM TWeiboUserinfo t WHERE t.userId = :userId"),
    @NamedQuery(name = "TWeiboUserinfo.findByName", query = "SELECT t FROM TWeiboUserinfo t WHERE t.name = :name"),
    @NamedQuery(name = "TWeiboUserinfo.findByGender", query = "SELECT t FROM TWeiboUserinfo t WHERE t.gender = :gender"),
    @NamedQuery(name = "TWeiboUserinfo.findByDescription", query = "SELECT t FROM TWeiboUserinfo t WHERE t.description = :description"),
    @NamedQuery(name = "TWeiboUserinfo.findByFollowerCount", query = "SELECT t FROM TWeiboUserinfo t WHERE t.followerCount = :followerCount"),
    @NamedQuery(name = "TWeiboUserinfo.findByFollowCount", query = "SELECT t FROM TWeiboUserinfo t WHERE t.followCount = :followCount"),
    @NamedQuery(name = "TWeiboUserinfo.findByHometown", query = "SELECT t FROM TWeiboUserinfo t WHERE t.hometown = :hometown"),
    @NamedQuery(name = "TWeiboUserinfo.findByIsverify", query = "SELECT t FROM TWeiboUserinfo t WHERE t.isverify = :isverify"),
    @NamedQuery(name = "TWeiboUserinfo.findByVipLevel", query = "SELECT t FROM TWeiboUserinfo t WHERE t.vipLevel = :vipLevel"),
    @NamedQuery(name = "TWeiboUserinfo.findByJob", query = "SELECT t FROM TWeiboUserinfo t WHERE t.job = :job")})
public class TWeiboUserinfo implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 32)
    @Column(name = "user_id")
    private String userId;
    @Size(max = 1024)
    @Column(name = "name")
    private String name;
    @Lob
    @Size(max = 16777215)
    @Column(name = "image_url")
    private String imageUrl;
    @Size(max = 2)
    @Column(name = "gender")
    private String gender;
    @Size(max = 2048)
    @Column(name = "description")
    private String description;
    @Column(name = "follower_count")
    private Integer followerCount;
    @Column(name = "follow_count")
    private Integer followCount;
    @Lob
    @Size(max = 16777215)
    @Column(name = "json_source")
    private String jsonSource;
    @Size(max = 64)
    @Column(name = "hometown")
    private String hometown;
    @Size(max = 2)
    @Column(name = "Is_verify")
    private String isverify;
    @Size(max = 16)
    @Column(name = "vip_level")
    private String vipLevel;
    @Size(max = 256)
    @Column(name = "job")
    private String job;

    public TWeiboUserinfo() {
    }

    public TWeiboUserinfo(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getFollowerCount() {
        return followerCount;
    }

    public void setFollowerCount(Integer followerCount) {
        this.followerCount = followerCount;
    }

    public Integer getFollowCount() {
        return followCount;
    }

    public void setFollowCount(Integer followCount) {
        this.followCount = followCount;
    }

    public String getJsonSource() {
        return jsonSource;
    }

    public void setJsonSource(String jsonSource) {
        this.jsonSource = jsonSource;
    }

    public String getHometown() {
        return hometown;
    }

    public void setHometown(String hometown) {
        this.hometown = hometown;
    }

    public String getIsverify() {
        return isverify;
    }

    public void setIsverify(String isverify) {
        this.isverify = isverify;
    }

    public String getVipLevel() {
        return vipLevel;
    }

    public void setVipLevel(String vipLevel) {
        this.vipLevel = vipLevel;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (userId != null ? userId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TWeiboUserinfo)) {
            return false;
        }
        TWeiboUserinfo other = (TWeiboUserinfo) object;
        if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "dao.TWeiboUserinfo[ userId=" + userId + " ]";
    }
    
}
